<template>
  <div style="margin-top: 30px">
    <div class="order-box">
      <div>
        <span>全部订单</span>
        <span style="display: block; text-align: center;">{{ totalOrders }}</span>
      </div>
      <div>
        <span>待付款</span>
        <span style="display: block; text-align: center;">{{ pendingPayment }}</span>
      </div>
      <div>
        <span>待发货</span>
        <span style="display: block; text-align: center;">{{ pendingDelivery }}</span>
      </div>
      <div>
        <span>待收货</span>
        <span style="display: block; text-align: center;">{{ pendingReceipt }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PersonHome",
  data() {
    return {
      totalOrders: 100,
      pendingPayment: 20,
      pendingDelivery: 30,
      pendingReceipt: 50
    };
  }
};
</script>

<style scoped>
.order-box {
  border: 1px solid #ccc;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  background-color: #d3dce6;
  font-size: 40px;
}

.order-box div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
</style>